package com.yunji.common.enums.business;

import java.util.Objects;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.user.enums
 * @Title: AuditTypes
 * @Description: 审核类型:
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-07-13 14:33:09      V1.0        HuaAo       新建类
 */

public enum  AuditTypes {

    ACCOUNT(0,"账号审核"),
    SCALE(1,"分润审核"),
    CHANGE(2,"换绑审核"),
    REFUND(3,"售后审核"),
    SITE(4,"网点审核"),
    PAYOUT(5,"提现审核"),
    ALLIANCE(6,"加盟审核"),
    REPAIR(7,"坏饭审核"),
    DISCARD(8,"报废审核"),
    STOCK_TAKE(9,"盘点审核");

    AuditTypes(Integer code, String text) {
        this.code = code;
        this.text = text;
    }

    private final Integer code;

    private final String text;

    public Integer getCode() {
        return code;
    }

    public String getText() {
        return text;
    }

    public static String get(Integer code)
    {
        AuditTypes[] enums = AuditTypes.values();
        for (AuditTypes e: enums )
        {
            if (Objects.equals(e.code, code)) { return e.text; }
        }
        return null;
    }

}